#pragma once
#include <rtpsession.h>
#include "MutexBuffer.h"

namespace ipsound {

class RTPReciever : public RTPSession
{
public:
	RTPReciever( MutexBuffer* buffer, const HANDLE playEvent );
	~RTPReciever();
protected:
	void OnPollThreadStep();
private:
	MutexBuffer* buffer;
	size_t bytesRecieved;
	HANDLE playEvent;
	bool soundIsPlaying;
};

}